import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    shareState: false,
    homeStatus: false,
    isMobile: false,//true 手机端  false PC
  },
  mutations: {
    // loadHome({ state }, record) {
    //   state.homeStatus = record;
    // }
  },
  actions: {
    loadHome({ state }, record) {
      state.homeStatus = record;
    },
    setShareState({ state }, share) {
      state.shareState = share;
    },
    //分辨是手机还是PC
    changeMobileState({ state }, value) {
      state.isMobile = value;
    }
  },
  modules: {
  }
})
